<template>
	<view class="formPage uniqueDialog" :class="{noScroll: showdialog}">
		<!-- 自检取样 -->
		<view class="" v-if="Checktypenum=='0'">
			<cLabel title='取样类型' :flagNum="flagNum" :dataText="fromMsg.fChecktype" :selectList="ChecktypenumList"
				v-model="fromMsg.fChecktype" mode="selector4" name="label" @total="ChecktypenumChange" />
				
			<view class="cu-form-group" style="padding-right: 10upx;border-top: 1px solid #dedddd;">
				<view style="display: flex;">
					<image src="@/static/unscope.png" mode=""
						style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title">材料进场编号</view>
				</view>
				<view @click="EntrynumberFocus()" style="display: flex;line-height: 100upx;align-items: center;">

					<view class="picker" :style="{ color: fMaterialindex > -1 ? '#555' : '#a0a0a0' }"
						v-if="fromMsg.fEntrynumber != null && fromMsg.fEntrynumber != ''">
						{{ fromMsg.fEntrynumber }}
					</view>
					<view class="picker" v-else :style="{ color: fMaterialindex > -1 ? '#555' : '#a0a0a0' }">
						请选择
					</view>
					<image style="width: 60upx;height: 100upx;padding: 28upx 10upx 28upx 10upx;"
						src="@/static/data1.png"></image>
				</view>
			</view>
			
			<cLabel title='取样编号' :disabled="true" v-model='fromMsg.fSamplenostr' :dataText='fromMsg.fSamplenostr'
				rightIcon='' mode='text' must="unmust" />
			<view class="cu-form-group " style="border-top:1px solid #dedddd ;">
				<view class="cu-form-group-box" style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title" style="padding-right: 28px;">样品种类</view>
				</view>
				<view @click="SampletypenameFocus()"
					style="display: flex;line-height: 100upx;align-items: center;position: relative;padding-right: 15upx;flex: 1;">

					<view class="picker" style="padding-right: 20upx;flex: 1;display: flex;justify-content: flex-end;"
						:style="{ color: fSampletypeindex > -1 ? '#555' : '#a0a0a0' }"
						v-if="fromMsg.fSampletypename != null && fromMsg.fSampletypename != ''">

						{{ fromMsg.fSampletypename }}

					</view>
					<view class="picker"
						style="flex:1;padding-right: 20upx;flex: 1;display: flex;justify-content: flex-end;" v-else
						:style="{ color: fSampletypeindex > -1 ? '#555' : '#a0a0a0' }">
						请选择
					</view>
					<view class="pickeres" style=""></view>
					<!-- <image style="width: 60upx;height: 100upx;padding: 28upx 10upx 28upx 10upx;"
						src="@/static/data1.png"></image> -->
				</view>
			</view>


			<cLabel title='样品名称' :disabled="false" v-model='fromMsg.fSamplename' :dataText='fromMsg.fSamplename'
				rightIcon='' mode='text' must="must" />
			<cLabel v-show="!disabledNumber" title='取样标段' :disabled="disabledNumber" :selectList="BusinessscopenameList"
				:flagNum="flagNum" :dataText='fromMsg.fBusinessscopename' v-model='fromMsg.fBusinessscopename'
				ref="fBusinessscopename" mode='selector4' name="label" @total="selectChange" />
			<!-- 
			<cLabel v-show="!disabledNumber" title='取样标段' :disabled="disabledNumber"
				:dataText='fromMsg.fBusinessscopename' :selectList="BusinessscopenameList" :flagNum="flagNum"
				v-model='fromMsg.fBusinessscopename' ref="fBusinessscopename" mode='selector2' name="fItemName"
				@input="BusinessscopenameChange" must="must" /> -->
			<fromItem v-show="disabledNumber" title="取样标段" :data="fromMsg.fBusinessscopename" flex="right"
				nameColor="#989898" projectName="#343434" />



			<cLabel title='样品描述' v-model='fromMsg.fSamplemessage' :dataText='fromMsg.fSamplemessage' rightIcon=''
				:disabled="false" mode='textarea' must="must" />
			<view class="cu-form-group " style="border-top:1px solid #dedddd ;">
				<view class="cu-form-group-box" style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/unscope.png" mode=""
						style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title" style="padding-right: 28px;">工程部位/用途</view>
				</view>

				<view style="display: flex;position: relative;">
					<input style="height: 50px;padding-right: 15px;" class="" v-model="fromMsg.fProjectlocation"
						placeholder="请输入/请选择" name="fProjectlocation" @blur="poinblur($event)"></input>
					<view class="pickeres" @click="getWbsToken"></view>
				</view>
			</view>


			<!-- 动态显示 -->
			<cLabel
				v-if="formObjText_zj==1||formObjText_zj==2||formObjText_zj==3||formObjText_zj==4||formObjText_zj==5||formObjText_zj==7||formObjText_zj==10"
				title='取样地点' :disabled="false" v-model='fromMsg.fAddress' :dataText='fromMsg.fAddress' rightIcon=''
				mode='text' must="no" />
				
			<cLabel
				v-if="formObjText_zj==1||formObjText_zj==2||formObjText_zj==3||formObjText_zj==4||formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==9||formObjText_zj==10"
				title='代表数量' :disabled="false" v-model='fromMsg.fDeputynum' :dataText='fromMsg.fDeputynum' rightIcon=''
				mode='text' must="must" />



			<cLabel v-if="!disabledNumber&&formObjText_zj==2" title='规格型号' :dataText='fromMsg.fSamplespecs'
				:selectList="fSamplespecsList" :disabled="disabledNumber" :flagNum="flagNum"
				v-model='fromMsg.fSamplespecs' ref="fSamplespecs" mode='selector2' name="fItemName"
				@input="fSamplespecsChange" must="must" />
			<cLabel v-if="!disabledNumber&&formObjText_zj==3" title='规格型号' :disabled="disabledNumber"
				v-model='fromMsg.fSamplespecs' :dataText='fromMsg.fSamplespecs' rightIcon='' mode='text' must="must" />
			<fromItem v-show="disabledNumber&&(formObjText_zj==2||formObjText_zj==3)" title="规格型号"
				:data="fromMsg.fSamplespecs" flex="right" nameColor="#989898" projectName="#343434" />



			<cLabel v-if="formObjText_zj==2||formObjText_zj==3" title='产地' :disabled="false" v-model='fromMsg.fPlace'
				:dataText='fromMsg.fPlace' rightIcon='' mode='text' must="must" />

			<cLabel title='生产厂家'
				v-if="!disabledNumber&&(formObjText_zj==4||formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==10)"
				:dataText='fromMsg.fManufacturer' :selectList="ManufacturerList" :disabled="disabledNumber"
				:flagNum="flagNum" v-model='fromMsg.fManufacturer' ref="fManufacturer" mode='selector2' name="fItemName"
				@input="ManufacturerChange" must="must" />
			<fromItem
				v-show="disabledNumber&&(formObjText_zj==4||formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==10)"
				title="生产厂家" :data="fromMsg.fManufacturer" flex="right" nameColor="#989898" projectName="#343434" />
			<cLabel v-if="formObjText_zj==9" title='厂家(产地)' :disabled="false" v-model='fromMsg.fManufacturer'
				:dataText='fromMsg.fManufacturer' rightIcon='' mode='text' must="must" />


			<cLabel v-if="formObjText_zj==6" title='外加剂掺量' :disabled="false" v-model='fromMsg.fSamplenum'
				:dataText='fromMsg.fSamplenum' rightIcon='' mode='text' must="must" />
			<cLabel v-if="formObjText_zj==4||formObjText_zj==8||formObjText_zj==13" :title="fStrengthgradeText"
				:disabled="false" v-model='fromMsg.fStrengthgrade' :dataText='fromMsg.fStrengthgrade' rightIcon=''
				mode='text' must="must" />
			<cLabel v-if="formObjText_zj==7||formObjText_zj==11||formObjText_zj==12||formObjText_zj==14"
				:title="fStrengthgradeText" :dataText='fromMsg.fStrengthgrade' :selectList="fStrengthgradeList"
				:disabled="false" :flagNum="flagNum" v-model='fromMsg.fStrengthgrade' ref="fStrengthgrade"
				mode='selector2' name="fItemName" @input="fStrengthgradeChange" must="must" />
			<cLabel v-if="formObjText_zj==4||formObjText_zj==6||formObjText_zj==10" :title="fSamplenoText"
				:disabled="false" v-model='fromMsg.fSampleno' :dataText='fromMsg.fSampleno' rightIcon='' mode='text'
				must="must" />
			<cLabel v-if="formObjText_zj==9" title='沥青标号' :dataText='fromMsg.fSampleno' :selectList="fSamplenoList"
				:disabled="false" :flagNum="flagNum" v-model='fromMsg.fSampleno' ref="fSampleno" mode='selector2'
				name="fItemName" @input="fSamplenoChange" must="must" />
			<cLabel v-if="formObjText_zj==10" title='钢筋直径' :dataText='fromMsg.fDiameter' :selectList="fDiameterList"
				:disabled="false" :flagNum="flagNum" v-model='fromMsg.fDiameter' ref="fDiameter" mode='selector2'
				name="fItemName"  must="must" />
			<cLabel v-if="formObjText_zj==9||formObjText_zj==13||formObjText_zj==14||formObjText_zj==16"
				:title='fTesttypeText' :disabled="false" v-model='fromMsg.fTesttype' :dataText='fromMsg.fTesttype'
				rightIcon='' mode='text' must="must" />
			<cLabel v-if="formObjText_zj==10||formObjText_zj==11||formObjText_zj==12" :title='fTesttypeText'
				:dataText='fromMsg.fTesttype' :selectList="fTesttypeList" :disabled="false" :flagNum="flagNum"
				v-model='fromMsg.fTesttype' ref="fTesttype" mode='selector2' name="fItemName" @input="fTesttypeChange"
				must="must" />
			<cLabel
				v-if="formObjText_zj==11||formObjText_zj==12||formObjText_zj==13||formObjText_zj==14||formObjText_zj==15"
				title='搅拌方式' :dataText='fromMsg.fMixingmethod' :selectList="fMixingmethodList" :disabled="false"
				:flagNum="flagNum" v-model='fromMsg.fMixingmethod' ref="fMixingmethod" mode='selector2' name="fItemName"
				@input="fMixingmethodChange" must="must" />
			<cLabel v-if="formObjText_zj==12||formObjText_zj==14||formObjText_zj==15" title='养护条件'
				:dataText='fromMsg.fWarecondition' :selectList="fWareconditionList" :disabled="false" :flagNum="flagNum"
				v-model='fromMsg.fWarecondition' ref="fWarecondition" mode='selector2' name="fItemName"
				@input="fWareconditionChange" must="must" />
			<cLabel v-if="formObjText_zj==16" title='试验层位' :disabled="false" v-model='fromMsg.fTestlayer'
				:dataText='fromMsg.fTestlayer' rightIcon='' mode='text' must="must" />
			<cLabel v-if="formObjText_zj==16" title='级配类型' :disabled="false" v-model='fromMsg.fGradationtype'
				:dataText='fromMsg.fGradationtype' rightIcon='' mode='text' must="must" />
			<cLabel
				v-if="formObjText_zj==6||formObjText_zj==7||formObjText_zj==8||formObjText_zj==9||formObjText_zj==12||formObjText_zj==14"
				:title='fProductiondatesText' over="calc(5em + 15px)" :dataText='fromMsg.fProductiondates'
				v-model='fromMsg.fProductiondates' mode='date1' must="must" :disabled="false" />
			<cLabel v-if="formObjText_zj==12||formObjText_zj==14" title='养护龄期' :dataText='fromMsg.fSpecimenage'
				:selectList="fSpecimenageList" :disabled="false" :flagNum="flagNum" v-model='fromMsg.fSpecimenage'
				ref="fSpecimenage" mode='selector2' name="fItemName" @input="fSpecimenageChange" must="must" />
			<cLabel v-if="formObjText_zj==12||formObjText_zj==14" title='试件尺寸' :dataText='fromMsg.fSpecimensize'
				:selectList="fSpecimensizeList" :disabled="false" :flagNum="flagNum" v-model='fromMsg.fSpecimensize'
				ref="fSpecimensize" mode='selector2' name="fItemName" @input="fSpecimensizeChange" must="must" />
			<cLabel title='强度等级' v-if="formObjText_zj==15" :dataText='fromMsg.fStrengthgrade'
				:selectList="fStrengthgradeList" :disabled="false" :flagNum="flagNum" v-model='fromMsg.fStrengthgrade'
				ref="fStrengthgrade" mode='selector2' name="fItemName" @input="StrengthgradeChange" must="must" />

			<!-- 动态显示 -->
			<cLabel v-if="isScanCode" title='试件数量' v-model='scanQRCode' :dataText='scanQRCode' rightIcon='' mode='text'
				must="no" />
			<!-- 连续扫描 -->
			<view class="cu-form-group" v-if="isScanCode" style="border-top: 1px solid #dedddd;">
				<view style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view style="" class="title">试件编号</view>
				</view>
				<view style="flex: 1;">
					<uni-tag :inverted="inverted" v-for="(item, index) in APPlist" :key="index" :text="item"
						:circle="true" type="primary" @click="setInverted(index)"
						style="text-align: center;margin: 10upx ;" />

					<view v-if="APPlist.length == 0"
						style="color: #a0a0a0;text-align: right;padding-right: 40upx;font-size: 26upx;">
						请扫码
					</view>
				</view>
			</view>


			<cLabel v-show="!disabledNumber" title='进场日期' over="calc(5em + 15px)" :dataText='fromMsg.fApproachdates'
				v-model='fromMsg.fApproachdates' mode='date1' must="must" :disabled="disabledNumber" />
			<fromItem v-show="disabledNumber" title="进场日期" :data="fromMsg.fApproachdates" flex="right"
				nameColor="#989898" projectName="#343434" />
			<cLabel title='取样日期' over="calc(5em + 15px)" :dataText='fromMsg.fSampledates' v-model='fromMsg.fSampledates'
				:disabled="false" mode='date1' must="must" />
			<cLabel title='取样人' :disabled="true" v-model='fromMsg.fSampleperson' :dataText='fromMsg.fSampleperson'
				rightIcon='' mode='text' must="must" />
			<cLabel title='见证人' :disabled="false" v-model='fromMsg.fWitnessperson' :dataText='fromMsg.fWitnessperson'
				rightIcon='' mode='text' must="no" />
			<cLabel title='备注' v-model='fromMsg.fNote' :dataText='fromMsg.fNote' rightIcon='' mode='textarea'
				:disabled="false" must="no" />



			<view class="cu-bar bg-white margin-top">

				<view class="action">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
						取样现场照片
				</view>
				<view class="action">
					{{ imgList.length }}/8
				</view>
			</view>

			<view class="cu-form-group">
				<view class="grid col-4 grid-square flex-sub">
					<view class="bg-img" v-for="(item, index) in imgList" :key="index"
						@tap="ViewImage($event, item.filePath)" :data-url="item.filePath">
						<image :src="item.filePath" mode="aspectFill"></image>
						<view class="cu-tag bg-red" @tap.stop="DelImg($event, item.id)" :data-index="index">
							<text class='cuIcon-close'></text>
						</view>
					</view>
					<view class="solids" @tap="sourceTypeChange" v-if="imgList.length < 8">
						<text class='cuIcon-cameraadd'></text>
					</view>
				</view>
			</view>

			<view class="grace-file-list" style="padding: 0;margin-bottom: 50upx">
				<view class="cu-bar bg-white">
					<view class="action">
						<image src="@/static/unscope.png" mode=""
							style="width: 30upx;height: 30upx;vertical-align: middle;">
							取样现场视频
					</view>
					<view class="action">
						{{ fastImgLists.length }}/6
					</view>
				</view>
				<view class="cu-bar bg-white" style="min-height: 30upx;">
					<view class="action">
					</view>
					<view class="action">
						<image @tap.stop="changeContent" style="width: 30upx;height: 30upx;margin-bottom: 20upx;"
							:src="isSrc" mode=""></image>
					</view>
				</view>
				<view v-show="contentShow" class="items" style="background-color: #fff;"
					v-for="(item, index) in fastImgLists" :key="index">
					<view class="bg-img" v-if="item.type == 'video'"
						style="position:relative;display: flex;justify-content: center;align-items: center;width: 80%;margin:auto;padding: 20upx 0;">
						<image v-show="fastImgLists[index].needload != 'true'" :src="item.src" :id="item.id" style=""
							@click="interVideo(item.filePath)"></image>
						<view @tap.stop="delectVideo($event, item.id)" class="remove cu-tag bg-red" ::data-index="index"
							style="width: 38upx;height: 38upx;position: absolute;top: 20upx;right: 0;z-index:12">
							<text class='cuIcon-close'></text>
						</view>
					</view>
				</view>
				<view class="cu-form-group" v-show="contentShow">
					<view class="grid col-4 grid-square flex-sub">
						<view class="solids delete" style="margin-top: 30upx;" v-if="canAdd"
							@tap="sourceTypeChangechooseVideo">
							<text class='cuIcon-cameraadd'></text>
						</view>
					</view>
				</view>
			</view>


			<!-- <view class="cu-form-group  margin-top">
				<view class="title">
					获取定位</view>
				<text class='cuIcon-locationfill text-orange'></text>
			</view>
			<cLabel title='经度' :disabled="true" v-model='longitude' :dataText='longitude' rightIcon='' mode='text'
				must="must" />
			<cLabel title='纬度' :disabled="true" v-model='latitude' :dataText='latitude' rightIcon='' mode='text'
				must="must" />
			<view class="cu-form-group" v-show="page">
				<map style="width: 100%; height: 300px;z-index: 0;" :latitude="latitude" :longitude="longitude"
					:markers="markers">
				</map>
			</view> -->


			<view class="cu-form-group" style="min-height: 141upx">

			</view>
		</view>



		<!-- 外委取样 -->
		<view class="" v-if="Checktypenum=='1'">
			<cLabel title='取样类型' :flagNum="flagNum" :dataText="fromMsg.fChecktype" :selectList="ChecktypenumList"
				v-model="fromMsg.fChecktype" mode="selector4" name="label" @total="ChecktypenumChange" />

			<view class="cu-form-group" style="padding-right: 10upx;border-top: 1px solid #dedddd;">
				<view style="display: flex;">
					<image src="@/static/unscope.png" mode=""
						style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title">材料进场编号</view>
				</view>
				<view @click="EntrynumberFocus()" style="display: flex;line-height: 100upx;align-items: center;">

					<view class="picker" :style="{ color: fMaterialindex > -1 ? '#555' : '#a0a0a0' }"
						v-if="fromMsg.fEntrynumber != null && fromMsg.fEntrynumber != ''">

						{{ fromMsg.fEntrynumber }}

					</view>
					<view class="picker" v-else :style="{ color: fMaterialindex > -1 ? '#555' : '#a0a0a0' }">
						请选择
					</view>
					<image style="width: 60upx;height: 100upx;padding: 28upx 10upx 28upx 10upx;"
						src="@/static/data1.png"></image>
				</view>
			</view>

			<cLabel title='取样编号' :disabled="true" v-model='fromMsg.fSamplenostr' :dataText='fromMsg.fSamplenostr'
				rightIcon='' mode='text' must="must" />


			<view class="cu-form-group " style="border-top:1px solid #dedddd ;">
				<view class="cu-form-group-box" style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title" style="padding-right: 28px;">样品种类</view>
				</view>
				<view @click="SampletypenameFocus()"
					style="display: flex;line-height: 100upx;align-items: center;position: relative;padding-right: 15upx;flex: 1;">

					<view class="picker" style="padding-right: 20upx;flex: 1;display: flex;justify-content: flex-end;"
						:style="{ color: fSampletypeindex > -1 ? '#555' : '#a0a0a0' }"
						v-if="fromMsg.fSampletypename != null && fromMsg.fSampletypename != ''">

						{{ fromMsg.fSampletypename }}

					</view>
					<view class="picker"
						style="flex:1;padding-right: 20upx;flex: 1;display: flex;justify-content: flex-end;" v-else
						:style="{ color: fSampletypeindex > -1 ? '#555' : '#a0a0a0' }">
						请选择
					</view>
					<view class="pickeres" style=""></view>
					<!-- <image style="width: 60upx;height: 100upx;padding: 28upx 10upx 28upx 10upx;"
						src="@/static/data1.png"></image> -->
				</view>
			</view>


			<cLabel title='样品名称' :disabled="false" v-model='fromMsg.fSamplename' :dataText='fromMsg.fSamplename'
				rightIcon='' mode='text' must="must" />

			<cLabel v-show="fSamplespecs" title='规格型号' :disabled="false" v-model='fromMsg.fSamplespecs'
				:dataText='fromMsg.fSamplespecs' rightIcon='' mode='text' must="must" />
			<cLabel v-show="!fSamplespecs" title='规格型号' :disabled="false" :dataText='fromMsg.fSamplespecs'
				:selectList="fSamplespecsList" :flagNum="flagNum" v-model='fromMsg.fSamplespecs' ref="fSamplespecs"
				mode='selector2' name="fItemName" @input="fSamplespecsChange" must="must" />
			<!-- <fromItem v-show="fSamplespecs" title="规格型号" :data="fromMsg.fSamplespecs" flex="right" nameColor="#989898"
				projectName="#343434" /> -->

			<cLabel title='巡查项目部' :flagNum="0" :dataText='totalData.fCheckproject' :selectList="userCompanyTree"
				v-model='totalData.fCheckproject' mode='selector4' name="label" @total="selectChange" />

			<!-- <cLabel v-show="!disabledNumber" title='取样标段' :disabled="disabledNumber"
				:dataText='fromMsg.fBusinessscopename' :selectList="BusinessscopenameList" :flagNum="flagNum"
				v-model='fromMsg.fBusinessscopename' ref="fBusinessscopename" mode='selector4' name="fItemName"
				@input="BusinessscopenameChange" must="must" /> -->

			<cLabel v-show="!disabledNumber" title='取样标段' :disabled="disabledNumber" :selectList="BusinessscopenameList"
				:flagNum="flagNum" :dataText='fromMsg.fBusinessscopename' v-model='fromMsg.fBusinessscopename'
				ref="fBusinessscopename" mode='selector4' name="label" @total="selectChange" />



			<fromItem v-show="disabledNumber" title="取样标段" :data="fromMsg.fBusinessscopename" flex="right"
				nameColor="#989898" projectName="#343434" />



			<cLabel v-show="!disabledNumber" title='批号/编号' :disabled="disabledNumber" v-model='fromMsg.fSampleno'
				:dataText='fromMsg.fSampleno' rightIcon='' mode='text' must="must" />

			<fromItem v-show="disabledNumber" title="批号/编号" :data="fromMsg.fSampleno" flex="right" nameColor="#989898"
				projectName="#343434" />


			<cLabel title='样品描述' v-model='fromMsg.fSamplemessage' :dataText='fromMsg.fSamplemessage' rightIcon=''
				:disabled="false" mode='textarea' must="must" />


			<cLabel v-show="!disabledNumber" title='生产厂家' :dataText='fromMsg.fManufacturer'
				:selectList="ManufacturerList" :flagNum="flagNum" v-model='fromMsg.fManufacturer' ref="fManufacturer"
				mode='selector2' name="fItemName" @input="ManufacturerChange" :disabled="disabledNumber" />
			<fromItem v-show="disabledNumber" title="生产厂家" :data="fromMsg.fManufacturer" flex="right"
				nameColor="#989898" projectName="#343434" />


			<cLabel title='产地' :disabled="false" v-model='fromMsg.fPlace' :dataText='fromMsg.fPlace' rightIcon=''
				mode='text' must="no" />
			<cLabel title='取样地点' :disabled="false" v-model='fromMsg.fAddress' :dataText='fromMsg.fAddress' rightIcon=''
				mode='text' must="must" />

			<view class="cu-form-group " style="border-top:1px solid #dedddd ;">
				<view class="cu-form-group-box" style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/unscope.png" mode=""
						style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view class="title" style="padding-right: 28px;">工程部位/用途</view>
				</view>

				<view style="display: flex;position: relative;">
					<input style="height: 50px;padding-right: 15px;" class="" v-model="fromMsg.fProjectlocation"
						placeholder="请输入/请选择" name="fProjectlocation" @blur="poinblur($event)"></input>
					<view class="pickeres" @click="getWbsToken"></view>
				</view>
			</view>

			<cLabel title='取样数量' :disabled="false" v-model='fromMsg.fSamplenum' :dataText='fromMsg.fSamplenum'
				rightIcon='' mode='text' must="must" />
			<cLabel title='代表数量' :disabled="false" v-model='fromMsg.fDeputynum' :dataText='fromMsg.fDeputynum'
				rightIcon='' mode='text' must="must" />
			<!-- 连续扫描 -->
			<!-- 	<cLabel v-if="isScanCode" title='试件数量' v-model='scanQRCode' :dataText='scanQRCode' rightIcon='' mode='text'
				must="no" />
			
			<view class="cu-form-group" v-if="isScanCode" style="border-top: 1px solid #dedddd;">
				<view style="display: flex;justify-content: center;align-items: center;">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
					</image>
					<view style="" class="title">试件编号</view>
				</view>
				<view style="flex: 1;">
					<uni-tag :inverted="inverted" v-for="(item, index) in APPlist" :key="index" :text="item"
						:circle="true" type="primary" @click="setInverted(index)"
						style="text-align: center;margin: 10upx ;" />

					<view v-if="APPlist.length == 0"
						style="color: #a0a0a0;text-align: right;padding-right: 40upx;font-size: 26upx;">
						请扫码
					</view>
				</view>
			</view> -->

			<cLabel v-show="!disabledNumber" title='进场日期' over="calc(5em + 15px)" :dataText='fromMsg.fApproachdates'
				v-model='fromMsg.fApproachdates' mode='date1' must="must" :disabled="disabledNumber" />
			<fromItem v-show="disabledNumber" title="进场日期" :data="fromMsg.fApproachdates" flex="right"
				nameColor="#989898" projectName="#343434" />



			<cLabel title='取样日期' over="calc(5em + 15px)" :dataText='fromMsg.fSampledates' v-model='fromMsg.fSampledates'
				:disabled="false" mode='date1' must="must" />
			<cLabel title='取样人' :disabled="true" v-model='fromMsg.fSampleperson' :dataText='fromMsg.fSampleperson'
				rightIcon='' mode='text' must="must" />
			<cLabel title='见证人' :disabled="false" v-model='fromMsg.fWitnessperson' :dataText='fromMsg.fWitnessperson'
				rightIcon='' mode='text' must="no" />
			<cLabel title='备注' v-model='fromMsg.fNote' :dataText='fromMsg.fNote' rightIcon='' mode='textarea'
				:disabled="false" must="no" />



			<view class="cu-bar bg-white margin-top">

				<view class="action">
					<image src="@/static/Scope.png" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
						取样现场照片
				</view>
				<view class="action">
					{{ imgList.length }}/8
				</view>
			</view>

			<view class="cu-form-group">
				<view class="grid col-4 grid-square flex-sub">
					<view class="bg-img" v-for="(item, index) in imgList" :key="index"
						@tap="ViewImage($event, item.filePath)" :data-url="item.filePath">
						<image :src="item.filePath" mode="aspectFill"></image>
						<view class="cu-tag bg-red" @tap.stop="DelImg($event, item.id)" :data-index="index">
							<text class='cuIcon-close'></text>
						</view>
					</view>
					<view class="solids" @tap="sourceTypeChange" v-if="imgList.length < 8">
						<text class='cuIcon-cameraadd'></text>
					</view>
				</view>
			</view>




			<view class="grace-file-list" style="padding: 0;margin-bottom: 50upx">
				<view class="cu-bar bg-white">
					<view class="action">
						<image src="@/static/unscope.png" mode=""
							style="width: 30upx;height: 30upx;vertical-align: middle;">
							取样现场视频
					</view>
					<view class="action">
						{{ fastImgLists.length }}/6
					</view>
				</view>
				<view class="cu-bar bg-white" style="min-height: 30upx;">
					<view class="action">
					</view>
					<view class="action">
						<image @tap.stop="changeContent" style="width: 30upx;height: 30upx;margin-bottom: 20upx;"
							:src="isSrc" mode=""></image>
					</view>
				</view>
				<view v-show="contentShow" class="items" style="background-color: #fff;"
					v-for="(item, index) in fastImgLists" :key="index">
					<view class="bg-img" v-if="item.type == 'video'"
						style="position:relative;display: flex;justify-content: center;align-items: center;width: 80%;margin:auto;padding: 20upx 0;">
						<image v-show="fastImgLists[index].needload != 'true'" :src="item.src" :id="item.id" style=""
							@click="interVideo(item.filePath)"></image>
						<view @tap.stop="delectVideo($event, item.id)" class="remove cu-tag bg-red" ::data-index="index"
							style="width: 38upx;height: 38upx;position: absolute;top: 20upx;right: 0;z-index:12">
							<text class='cuIcon-close'></text>
						</view>
					</view>
				</view>
				<view class="cu-form-group" v-show="contentShow">
					<view class="grid col-4 grid-square flex-sub">
						<view class="solids delete" style="margin-top: 30upx;" v-if="canAdd"
							@tap="sourceTypeChangechooseVideo">
							<text class='cuIcon-cameraadd'></text>
						</view>
					</view>
				</view>
			</view>


			<!-- <view class="cu-form-group  margin-top">
				<view class="title">
					获取定位</view>
				<text class='cuIcon-locationfill text-orange'></text>
			</view>
			<cLabel title='经度' :disabled="true" v-model='longitude' :dataText='longitude' rightIcon='' mode='text'
				must="must" />
			<cLabel title='纬度' :disabled="true" v-model='latitude' :dataText='latitude' rightIcon='' mode='text'
				must="must" />
			<view class="cu-form-group" v-show="page">
				<map style="width: 100%; height: 300px;z-index: 0;" :latitude="latitude" :longitude="longitude"
					:markers="markers">
				</map>
			</view> -->



			<view class="cu-form-group" style="min-height: 141upx">

			</view>
		</view>




		<view class="wrapper">
			<view class="list">
				<text class="text" @click="clickNum('0')">保存</text>
				<text class="text" @click="clickNum('1')">提交</text>
			</view>
		</view>
		<loading :shadeShow="shadeShow" :shadeClick="true" :backgroundColor="backgroundColor" :width="width"
			:height="height" ref="loadings" :custom="false" :type="1">
		</loading>
		<!-- 多选 -->
		<!-- <multiple-select v-model="show" :data="SpecimenAgeList" labelName="fItemname"
			:default-selected="defaultSelected" @confirm="confirm">
		</multiple-select> -->
		<!-- 多选 -->


		<!--  弹框树结构--样品种类 -->
		<tree ref="company" idKey="fSampletype" nodeKey="fSampletype" rangeKey="fSampletypename"
			:selectParent="selectParent" :multiple="multiple" :companyId="fromMsg.fSampletype" :range="companyTree"
			:foldAll="flod" @confirm="treeConfirm" @cancel="treeCancel">
		</tree>
		<!--  弹框树结构--样品种类 -->


		<!-- wbs -->
		<!-- maskClick：点击遮罩层是否关闭
		    showSearch：文字搜索是否展示（模糊查询）
			isStartRadio：是否可以点击那行直接选中元素 （false否、true是）
			diaLog：是否弹窗模式   true:是
			url:接口地址
			formUrl:url接口取数据传参，如http://xxx.xxx?id=bbb中的id
			default:url获取数据默认值，如http://xxx.xxx?id=bbb中的bbb
			header:接口header传参
			formData:接口body传参
			searchCondition:服务端检索时字段（默认为searchName）
			idKey:指定 Object 中 key 的值作为单条数据的唯一id
			nameKey:指定 Object 中 key 的值作为选择器显示的内容
			allKey:需要查询下一级的取值字段
			childrenMark:末级无数据时，显示的字段标识（必传项，否则会报错）
			 -->
		<wbstree ref="sevenqLazy" title="" cancelColor="#757575" confirmColor="#007aff" activeColor="#007aff"
			url="http://1.14.103.201:8300/IOTManagement/zjgxTree/getWbsLists.do" :maskClick="true" :isStartRadio="false"
			:showSearch="false" :diaLog="true" :formUrl="wbsUrlFrom" :default="wbsUrlFrom" :formData="formData"
			searchCondition="FCataName" method="POST" :success="success" idKey="fNodeid" fCompanyid="fCompanyid"
			nameKey="fName" Longname="fLongname" allKey="fNodeid" childrenMark="fHaschildren" @error="error"
			@confirm="confirmWbs" @cancel="cancelWbs" @onlastData="wbsRow" @onrowData="wbsRow" />
		<!-- wbs -->
	</view>
</template>
<script src="./index.js">
</script>

<style scoped lang="less">
	@import './index.less';
</style>
